<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>layui.dtree帮助手册</title>
<link rel="stylesheet" href="../../layui/css/layui.css">
<script type="text/javascript" src="../../layui/layui.js"></script>

<link rel="stylesheet" href="../../layui_ext/dtree/dtree.css">
<link rel="stylesheet" href="../../layui_ext/dtree/font/dtreefont.css">

<link rel="stylesheet" href="../online.css">
</head>
<body>

	<div class="container">
		<div class="layui-row layui-col-space10">
			<div class="layui-fluid">
				<fieldset class="layui-elem-field layui-field-title" id="basicData">
					<legend>复制这段url代码或data添加在示例中运行</legend>
					<div class="layui-field-box">
						<div class="layui-row layui-col-space10" style="margin-top: 10px;">
							<div class="layui-col-lg12">
								<pre class="layui-code" lay-title="url&配置项一览">
									url: "../json/case/dataTree1.json",
									method: "get",
									response: {statusCode: 0, message: "msg"},
									dataStyle: "layuiStyle",
									dataFormat: "list"
								</pre>
							</div>
							<div class="layui-col-lg12">
								<pre class="layui-code" lay-title="data数据一览">
									var data = [
  {"id":"001","title": "湖南省","checkArr": "0","parentId": "0"},
  {"id":"002","title": "湖北省","checkArr": "0","parentId": "0"},
  {"id":"003","title": "广东省","checkArr": "0","parentId": "0"},
  {"id":"004","title": "浙江省","checkArr": "0","parentId": "0"},
  {"id":"005","title": "福建省","checkArr": "0","parentId": "0"},
  {"id":"001001","title": "长沙市","checkArr": "0","parentId": "001"},
  {"id":"001002","title": "株洲市","checkArr": "0","parentId": "001"},
  {"id":"001003","title": "湘潭市","checkArr": "0","parentId": "001"},
  {"id":"001004","title": "衡阳市","checkArr": "0","parentId": "001"},
  {"id":"001005","title": "郴州市","checkArr": "0","iconClass": "dtree-icon-caidan_xunzhang","parentId": "001"}
]
								</pre>
							</div>
						</div>
					</div>
				</fieldset>
			</div>
		</div>
	</div>

</body>
<script type="text/javascript">
	layui.extend({
		dtree: '{/}../../layui_ext/dtree/dtree'
	}).use(['element','layer', 'table', 'code' ,'util', 'dtree'], function(){
		var element = layui.element,
			layer = layui.layer,
			table = layui.table,
			util = layui.util,
			dtree = layui.dtree,
			$ = layui.$;
		layui.code();	// 代码修饰器
		
	});
</script>
</html>